/*********************************************************************
 *                                                                   *
 *  Js Css Minifier ( JsCssMin )                                     *
 *  Author: Igor Kanshyn                                             *
 *  Copyright (c) 2009, Igor Kanshyn. All rights reserved.           *
 *                                                                   *
 *  JsCssMin is released under the Apache Software License.          *
 *  See LICENSE.txt for more details.                                *
 *                                                                   *
 *********************************************************************/

package org.grenader.jscssmin.files;

import java.io.*;

/**
 * <p>Product: JsCssMin ( JavaScript and CSS Minifier )<br>
 * Author: Igor Kanshyn (grenader).
 * </p>
 * Date: May 6, 2009
 */
class JsCssMinFileReaderEncoding extends JsCssMinFileReader {
    private String encoding;

    public JsCssMinFileReaderEncoding(File file, String encoding) {
        super(file);
        this.encoding = encoding;
    }

    @Override
    protected InputStreamReader getInputStream() throws FileNotFoundException, UnsupportedEncodingException {
        return new InputStreamReader(new FileInputStream(this.file), this.encoding);
    }

}